# -*- encoding:utf-8 -*-
# !/usr/bin/env python
'''
    python-0803-03.py
    ======================
    @descript: 生成器
    @copyright:nnz
    @author:dln
    @date: 2021/8/4 8:53
    @version:v1.0
'''
#创建生成器   ()+for in
v_generator=(v_element for v_element in range(1,20))
print(list(v_generator))
#列表
v_list=[ v_generator01 for v_generator01 in range(1,10)]
print(v_list)

#操作生成器  查找   遍历
for v_element in v_generator :
    print(v_element)
    pass
